package org.hang.gift.clients;


import org.hang.gift.clients.fallback.AuthClientFallback;
import org.hang.gift.domain.LoginUser;
import org.hang.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;


/**
 * 授权中心对外提供的client接口，供别的服务来进行调用的
 */
@FeignClient(value = "gift-auth",fallback = AuthClientFallback.class)
public interface AuthClient {

    @PutMapping("/loginUser")
    public AjaxResult addOrUpdate(@RequestBody LoginUser loginUser);

}
